﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using Forms = System.Windows.Forms;
using WebViewerTest.NativeMethods;
using System.Windows.Forms.Integration;

namespace WebViewerTest
{
	public class WebBrowserVisual : WindowsFormsHost
	{
/*
		public WebBrowserVisual()
		{
			browser = new Forms.WebBrowser();
			browser.Visibility = Visibility.Hidden;
			AddVisualChild( browser );
		}

		public Uri Source
		{
			get { return browser.Source; }
			set { browser.Source = value; }
		}

		protected override void OnRender( System.Windows.Media.DrawingContext drawingContext )
		{
			if ( browser.Document != null )
			{
				var viewObj = browser.Document as IViewObject;
				var window = browser.Document as IOleWindow;

				IntPtr hWnd;
				window.GetWindow( out hWnd );
			}

			base.OnRender( drawingContext );
		}*/
	}
}